<template>
  <div id="create-btn">
    <el-button type="primary" @click="createLivedRoom">创建直播间</el-button>
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue'
import router from '@/router'
export default defineComponent({
  name: 'create-btn',
  setup() {
    const createLivedRoom = () => {
      // this.$EventBus.$emit('clearSidebarActiveIndex')
      router.push('/main/live-create-room')
    }
    return { createLivedRoom }
  },
})
</script>

<style scoped>
#create-btn {
  display: flex;
  flex-direction: row-reverse;
  margin-bottom: 0.3rem;
}
</style>
